// Programming_Scala/src/ch08/foldleft-map-script.scala
val result = List( 1, 2, 3, 4, 5, 6 ).foldLeft( List[String]() ) {
  ( list, x ) => ( "<" + x + ">" ) :: list
}.reverse

println( result )
